ScopedGtbabel\gtbabel\core\Host D

Total Complexity 132
Dependencies 3
Dependents 5
Total lines 429
Lines of code 367
Logical lines of code 209
Comment lines 8
Methods 45
Properties 6

Methods 45

Method Rating Maintainability Complexity Lines of code
getLanguageCodeFromUrl()
A
46 11 38
requestContentTypeIsInappropriate()
A
51 10 31
getPathWithoutPrefixFromUrl()
A
52 8 25
getIpLanguageCode()
S
57 7 16
getResponseContentType()
S
57 5 16
isAjaxRequest()
S
63 6 9
slugTranslationIsDisabledForUrl()
S
61 5 11
contentTranslationIsDisabledForUrl()
S
61 5 11
appendArgToUrl()
S
55 4 19
shouldUseLangQueryArg()
S
61 4 13
getBaseUrlForLanguageCode()
S
62 4 11
getArgsFromUrl()
S
62 4 11
getBrowserLanguageCode()
S
63 4 10
getPrefixFromUrl()
S
64 4 9
getRequestContentType()
S
67 3 9
getArgFromUrl()
S
68 3 7
getCurrentUrlConverted()
S
75 3 3
getPrefixForLanguageCode()
S
68 3 7
getCurrentUrlWithArgsConverted()
S
75 3 3
getCurrentHostConverted()
S
76 3 3
__construct()
S
75 3 4
responseContentTypeIsInappropriate()
S
64 3 10
stripArgsFromUrl()
S
68 2 7
getReferer()
S
71 2 6
getRefererLanguageCode()
S
69 2 7
getPathWithPrefixFromUrl()
S
65 2 9
getBaseUrlForSourceLanguage()
S
81 1 3
getCurrentPrefix()
S
81 1 3
getCurrentPathConverted()
S
78 1 3
getCurrentPathWithArgsConverted()
S
81 1 3
getCurrentArgsConverted()
S
79 1 3
getCurrentUrlWithArgs()
S
83 1 3
contentTranslationIsDisabledForCurrentUrl()
S
81 1 3
getCurrentArgs()
S
83 1 3
setup()
S
67 1 8
getCurrentUrl()
S
83 1 3
getCurrentPath()
S
83 1 3
stripNonArgsFromUrl()
S
78 1 3
getCurrentHost()
S
83 1 3
slugTranslationIsDisabledForCurrentUrl()
S
81 1 3
getCurrentPathWithArgs()
S
83 1 3
responseCodeIsSuccessful()
S
78 1 3
urlIsStaticFile()
S
78 1 3
currentUrlIsStaticFile()
S
81 1 3
getBaseUrlWithPrefixForLanguageCode()
S
77 1 3